Debian 8 Jessie
Sponsored Link

Command Alias
2015/05/01
 
Set Command Alias for commands often used.
[1] Apply to all users.
root@dlp:~#
vi /etc/profile
# add to the end

alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# reload

root@dlp:~#
source /etc/profile

[2] Apply to a user. ( a user 'jessie' applies for himself )
jessie@dlp:~$
vi .bashrc
# add to the end

alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
jessie@dlp:~$
source .bashrc

 
Tweet